﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin.master" CodeFile="BranchMaster.aspx.cs"
    Inherits="BranchMaster" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cpHead" runat="server">
    <style type="text/css">
        .style1
        {
            width: 101px;
        }
    </style>

    <script type="text/javascript" src="jsDatePick.min.1.3.js"></script>

    <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />

    <script type="text/javascript">
        window.onload = function () {
            new JsDatePick({
                useMode: 2,
                target: "<%=txtlogintill.ClientID%>",
                dateFormat: "%d-%M-%Y"
            });

            new JsDatePick({
                useMode: 2,
                target: "<%=txtDob.ClientID%>",
                dateFormat: "%d-%M-%Y"
            });

            new JsDatePick({
                useMode: 2,
                target: "<%=txtdownloadtill.ClientID%>",
                dateFormat: "%d-%M-%Y"
            });
        };
    </script>

</asp:Content>
<asp:Content ID="content1" ContentPlaceHolderID="cphMainBody" runat="server">
    <%--<asp:ScriptManager ID="ScriptManager2" runat="server">
    </asp:ScriptManager>--%>
    <table width="100%">
        <tr>
            <td class="tdstyle" style="width: 100px">
                Branch Name
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtBranchName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Branch Description
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtBranchDescription" TextMode="MultiLine" runat="server"
                    Height="60px" Width="196px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Email
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtemail" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Mobile
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtmobile" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Phone
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtPhone" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                DOB
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtDob" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
                Login ID
            </td>
            <td class="tdstyle">
                <asp:RadioButtonList ID="rbtnLoginId" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Text="Email" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Mobile" Value="2"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
                Password
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Download Till
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtdownloadtill" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Login Till
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtlogintill" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
            </td>
            <td class="tdstyle">
                <asp:Button class="CSSButton" ID="btnsaveEmployeinfo" runat="server" Text="Save Branch Information"
                    OnClick="btnsaveEmployeinfo_Click" />
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
                <asp:GridView ID="grdEmploye" runat="server" CssClass="griddiv" CellPadding="4" AutoGenerateColumns="false"
                    GridLines="Horizontal" AllowPaging="True" OnPageIndexChanging="grdEmploye_PageIndexChanging"
                    OnRowCommand="grdEmploye_RowCommand">
                    <Columns>
                        <asp:TemplateField ItemStyle-CssClass="griditem" HeaderText="Edit/Delete">
                            <ItemTemplate>
                                <asp:ImageButton ID="lnkEdit" ImageUrl="~\images\Edit.jpg" Height="20px" CommandName="Edt"
                                    CommandArgument='<%# Eval("ID") %>' runat="server" AlternateText="Edit"></asp:ImageButton>
                                <asp:ImageButton ID="lnkDelete" ImageUrl="~\images\delete.jpg" Height="20px" CommandName="Del"
                                    CommandArgument='<%# Eval("ID") %>' runat="server" AlternateText="Delete"></asp:ImageButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="BRANCH_NAME" HeaderText="Branch Name" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="BRANCH_DESCRIPTION" HeaderText="Branch Profile " />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="EMAIL" HeaderText="Email " />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="MOBILE" HeaderText="Mobile" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="PHONE" HeaderText="Phone" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="DOWNLOAD_TILL" HeaderText="Download Till" DataFormatString="{0:dd/MMM/yyyy}" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="LOGIN_TILL" HeaderText="Login Till" DataFormatString="{0:dd/MMM/yyyy}" />
                        
                    </Columns>
                    
                    <PagerStyle CssClass="pagingstyle" />
                    <SelectedRowStyle Font-Bold="True" />
                    <HeaderStyle CssClass="greedhead" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
